Repository navigation
Framework tests verify behavior instead of implementation text - #551
Draft
Marius Storhaug (MariusStorhaug) wants to merge 7 commits into
Draft
Marius Storhaug (MariusStorhaug) wants to merge 7 commits into
Marius Storhaug (MariusStorhaug) wants to merge 7 commits into
Conversation
7 tasks done
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Parallel test suites can race on shared environment variables, and the release-notes test cannot detect whether commit-message selection ignores CommitSha.
2 open issues
What changed in this PR
This PR advances the framework’s test-alignment audit by checking observable release behavior and generated documentation rather than fixed wording or implementation details. Production scripts and consumer inputs are unchanged.
Changes:
- Verify release-note contents and target commits at an intercepted GitHub command boundary, and reject GitHub calls in WhatIf cases.
- Compare generated Functions indexes with authored fixtures using file hashes.
- Remove implementation-focused assertions and preserve the configured Pester options through execution.
| File | Description |
|---|---|
.github/workflows/Workflow-Test-WithManifest.yml |
Verify authored Markdown is preserved in manifest-based builds. |
.github/workflows/Workflow-Test-Default.yml |
Verify authored Markdown is preserved in default builds. |
.github/workflows/Test-Actions.yml |
Remove configuration self-checks and retain Pester execution settings. |
.github/actions/Release-PSModule/tests/Release-PSModule.WhatIf.Tests.ps1 |
Assert release notes and target arguments using a real Git fixture and intercepted GitHub calls. |
.github/actions/Publish-PSModule/tests/Publish-PSModule.Helpers.Tests.ps1 |
Remove a parameter-introspection assertion. |
Review effort: Balanced
This was referenced Nov 4, 2026
This was referenced Nov 4, 2026
Open
[documentation-writing-alignment] Resolve conflicting mock requirements in module test guidance
#563
Open
Open
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Focused framework checks now verify release-note content and authored-page transfer instead of fixed log sentences, documentation phrases, or a private helper parameter inventory. Version outputs, failure handling, recovery, WhatIf behavior, module fixtures, and the shipped validation suites remain covered.
This is a scoped test/CI cleanup. Production scripts, consumer inputs, documentation, coverage targets, permissions, and release labels are unchanged. The PR stays in draft because the existing producer-conformance and publication-evidence holds are not resolved here.
Technical details
Scope and immutable identities
Repository:
PSModule/Process-PSModule. Default-branch base:64ffb1d87f86bd5d487891fdb140b78385a00531. Reviewed head:7a00cbb9cd72baddf14d990019cf5da3c9c3600e. Seven small ordinary commits change five files. The worktree is clean and the head is pushed. No open PR branch is a source..github/actions/Release-PSModule/tests/Release-PSModule.WhatIf.Tests.ps1.github/actions/Publish-PSModule/tests/Publish-PSModule.Helpers.Tests.ps1.github/workflows/Workflow-Test-Default.yml.github/workflows/Workflow-Test-WithManifest.yml.github/workflows/Test-Actions.ymlComplete audit inventory
PSModule/Process-PSModule#550 contains the complete source-bound classification of every assertion and invoked test/discovery entry point, including counts, real entry points, expectations, and policy reasons. Counts below describe the audited source; no fixed repository-inventory assertion is added.
Validation and evidence limits
[6.1.0,7.0.0)range. The baseline had 73 cases; the sole removed case was the parameter inventory.The seven conditional skips are the two fixture publication jobs of each kind, the default fixture's repository lint, and the manifest fixture's source test/lint jobs. These are not new passes. Live Gallery publication, real GitHub release writes, publication provenance, and safety-owner handback remain unexecuted here. Test doubles prove local caller handling only; they do not prove an upstream service, authentication, or safe publication ownership.
The compiled-fixture check first detected a missing ThreadJob 1.x dependency. Only that declared dependency was restored to isolated scratch storage; no global installation changed. An early Windows scratch-build attempt hit formatter line-ending limits, so the successful retained-Module evidence uses the real Ubuntu CI artifact from run 41824863677/source
dbd162f0001b73cfa03207dd18f0ce607adc6114. The compiler and shipped validator are unchanged between that source and the final head. An inherited-shell analyzer run also emitted an intermittent Context/Get-Context resolution warning; baseline/candidate rechecks returned 0/0 and clean-profile analysis returned 0, without a suppression.Review disposition
Author self-review covers the complete scoped diff. The first independent automated review identified two valid gaps: the selected commit was also HEAD, and parallel execution could race on process environment. Both were fixed, exercised with deliberate counterexamples, replied to, and resolved.
Copilot review 5768041720 is APPROVED for the exact final head
7a00cbb9cd72baddf14d990019cf5da3c9c3600e; its complete summary reports no active issues and both prior findings resolved. No new inline finding remains. This is an automated approval, not a claimed human approval. The author-side reply records are not counted as independent reviews.Standards and framework alignment
Relevant canonical policy files were unchanged when refreshed through
MSXOrg/docs@1b0d4893c8fefabe604d04393068a8ff6f848082. Existing guidance already describes the scoped runtime contracts; no documentation/native-help path needs a cleanup edit.The Task's audit, focused implementation, local verification, CI, and exact-head automated review steps are complete. The issue-convergence search covered functional-test alignment, snapshot/change-detection terms, touched components, and the two new follow-ups. Only #550 is fully addressed. #184 and all unrelated/held proposals remain open and unchanged.
Producer hold
The actual repository release route is
.github/workflows/Release.ymlcallingPSModule/Release-GHRepository@750abed0ecab02394554b610dc3aa191e75e3248(v2.0.3). Its immutable released interface uses legacy labels; no adapter to the canonical release-decision contract is verified. Publication/source baselines for this versioned workflow producer are not established by this scoped diff.The draft therefore makes no release decision, release-label, final version, consumer-publication coverage, or ready-for-merge claim. The existing producer-conformance/publication-evidence holds remain intact. No merge, auto-merge, label removal, publication, permission change, or held-branch integration was performed. Original-tested-artifact and safety-owner decisions are unchanged.
Related references